package com.ctvit.sjk.knowledge.app.pojo.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 应用程序配置文件VO
 *
 * @author heyingcheng
 * @date 2025/03/29
 */
@Getter
@Setter
@ToString
public class AppProfileVO {

    /**
     * 版本
     */
    private String version;
    /**
     * 是否支持扩展包
     */
    @JsonProperty("IS_XPACK")
    private Boolean isXpack;
    /**
     * 是否扩展包授权
     */
    @JsonProperty("XPACK_LICENSE_IS_VALID")
    private Boolean xpackLicenseIsValid;

    public AppProfileVO() {
        this.version = "v1.10.2-lts (build at 2025-03-05T19:39, commit: bc3dcda1)";
        this.isXpack = false;
        this.xpackLicenseIsValid = false;
    }

    public AppProfileVO(String version, Boolean isXpack, Boolean xpackLicenseIsValid) {
        this.version = version;
        this.isXpack = isXpack;
        this.xpackLicenseIsValid = xpackLicenseIsValid;
    }

}
